#include "e2d/imgui/physics/Editor.h"
#include "e2d/core/physics/components.h"
#include "sysx/System.h"

using Editor = e2d::BasicEditor;


template<>
bool Editor::Edit<e2d::RigidbodyDynamic>(const std::string& l, e2d::RigidbodyDynamic& e)
{
	int index = 0;

	EditInst<float>("m_Mass", e.m_Mass);
	EditInst<e2d::PxShapeMap>("m_PxShapeMaps", e.m_PxShapeMaps);
	if (ImGui::Button("delete"))
	{
		e.Delete();
	}
	ImGui::SameLine();
	if (ImGui::Button("Load"))
	{
		e.OnLoad();
	}

	return  false;
}